import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_basic/basic/basic_view.dart';
import 'controller.dart';

class GuidePage extends BasicPage<GuidePageController>{
  GuidePage.bind(GuidePageController controller, {String? tag}) : super.bind(controller, tag: tag);

  MethodChannel _channel = const MethodChannel('multiple-flutters');

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('页面三'),
        centerTitle: true,
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          GestureDetector(
            onTap: (){
              _channel.invokeMethod<void>("result", "返回的参数");
            },
            child: Center(
              child: Container(
                height: 100,
                child: Text('controller.name.value'),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
